package com.cloudcc.mobile.adapter;

import android.content.Context;

import com.cloudcc.cloudframe.adapter.CommonAdapter;

public abstract class BaseOneChoiceAdapter<T> extends CommonAdapter<T> {
	protected int mSelectPos;
	protected OnSelectItemListener<T> mOnSelectItemListener;
	public BaseOneChoiceAdapter(Context mContext) {
		super(mContext);
	}

	public void setSelectItem(int pos) {
		this.mSelectPos = pos;
	}

	public int getSelectPost() {
		return mSelectPos;
	}
	public <T> OnSelectItemListener getmOnSelectItemListener() {
		return mOnSelectItemListener;
	}
	public void setmOnSelectItemListener(OnSelectItemListener<T> mOnSelectItemListener) {
		this.mOnSelectItemListener = mOnSelectItemListener;
	}

	public interface OnSelectItemListener<T>{
		void onSelectItem(int pos,T t);
	}
}
